clipboard: Refactor gdk_clipboard_read() to be async
authorBenjamin Otte <otte@redhat.com>
Wed, 22 Nov 2017 08:25:35 +0000 (09:25 +0100)
committerBenjamin Otte <otte@redhat.com>
Sun, 3 Dec 2017 04:46:26 +0000 (05:46 +0100)
commit41f70e18afd9e517fcd685ac46fd0e4937d016d4
tree0f56b6b4d6c94ae7c235f85bc0e4b2c43a0ec430
parent516f35b86500e139b9c17e17a12d1b492beca677
clipboard: Refactor gdk_clipboard_read() to be async

This allows us not just to pass any mime type to the read function, but
it also makes it possible to pass multiple mime types and the clipboard
can then try them in order until it finds a supported one.

This is so far not implemented though.
gdk/gdkclipboard.c
gdk/gdkclipboard.h
gdk/gdkclipboardprivate.h
gdk/x11/gdkclipboard-x11.c
gdk/x11/gdkselectioninputstream-x11.c
gdk/x11/gdkselectioninputstream-x11.h
tests/testclipboard2.c